﻿@model Tippelde.Web.Models.LoginViewModel

@{
    ViewBag.Title = "Bejelentkezés";
}

<h2>@ViewBag.Title.</h2>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title" id="modalTitle">&nbsp;&nbsp;&nbsp;&nbsp;Bejelentkezés külső fiókkal.</h4>
        </div>
        <div class="modal-body">
            <div class="col-sm-12">
                <section id="socialLoginForm">
                    @{
                        ViewBag.HeaderIgnore = false;
                    }
                    @Html.Partial("_ExternalLoginsListPartial", new { Action = "ExternalLogin", ReturnUrl = ViewBag.ReturnUrl })
                </section>
            </div>
            <div class="col-sm-12">
                <section id="loginForm">
                    <hr />
                    <h4>Bejelentkezés lokális fiókkal.</h4>
                    @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
                    {
                        @Html.AntiForgeryToken()
                        @Html.ValidationSummary(true)


                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon"><span class="glyphicon glyphicon-user"></span></div>
                                @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", placeholder = @Html.DisplayNameOf(m => m.UserName) })
                                @Html.ValidationMessageFor(m => m.UserName)
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon"><span class="glyphicon glyphicon-eye-close"></span></div>
                                @Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = @Html.DisplayNameOf(m => m.Password) })
                                @Html.ValidationMessageFor(m => m.Password)
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-offset-1 col-md-11">
                                <div class="checkbox">
                                    @Html.CheckBoxFor(m => m.RememberMe)
                                    @Html.LabelFor(m => m.RememberMe)
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-offset-1 col-md-11">
                                <input type="submit" value="Bejelentkezés" class="btn btn-default" />
                            </div>
                        </div>
                        <p>
                            @Html.ActionLink("Regisztrálj", "Register"), ha még nincs fiókod.
                        </p>
                    }
                </section>
            </div>
        </div>
        <div class="modal-footer">
        </div>
    </div>
</div>

<script src="@Url.Content("~/bundles/jqueryval")"></script>

